package com.bill99.rpc.config;


/**
 * @author sheng.zhang
 */
public abstract class AbstractConfig {

	private static final long serialVersionUID = 1L;

	protected String id;
	protected String name;
	protected Class<?> serviceInterface;
	protected String version;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Class<?> getServiceInterface() {
		return serviceInterface;
	}

	public void setServiceInterface(Class<?> serviceInterface) {
		if (serviceInterface != null && !serviceInterface.isInterface()) {
			throw new IllegalArgumentException(
					"'serviceInterface' must be an interface");
		}
		this.serviceInterface = serviceInterface;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}
